package org.nanotek.lucene.query;

/**
 * Processor EndPoint that executes a given query (searchphrase) against
 * an arbitrary data repository.
 *
 */
import org.apache.lucene.analysis.Analyzer;

public abstract class BaseQueryProcessor implements QueryProcessor<String, QueryContext> {

	private String searchPhrase;
	private Integer maxNumberOfHits = 0;
	private Analyzer analyzer;
	private QueryDispatcher queryDispatcher;

	@Override
	public abstract void processQuery(String searchPhrase, QueryContext queryContext);


	public String getSearchPhrase() {
		return searchPhrase;
	}


	public void setSearchPhrase(String searchPhrase) {
		this.searchPhrase = searchPhrase;
	}


	public Integer getMaxNumberOfHits() {
		return maxNumberOfHits;
	}


	public void setMaxNumberOfHits(Integer maxNumberOfHits) {
		this.maxNumberOfHits = maxNumberOfHits;
	}


	public Analyzer getAnalyzer() {
		return analyzer;
	}


	public void setAnalyzer(Analyzer analyzer) {
		this.analyzer = analyzer;
	}


	public QueryDispatcher getQueryDispatcher() {
		return queryDispatcher;
	}


	public void setQueryDispatcher(QueryDispatcher queryDispatcher) {
		this.queryDispatcher = queryDispatcher;
	}

}
